// const api = process.env.NODE_ENV === "production" ? "" : "https://localhost:8888/DEV";

const api = " ";
// const api="https://emcagent.test700.xyz";    //代理后台测试服务器2
// const api="https://emcagenth5.test700.xyz";    //代理后台测试服务器3
// const api="https://wwk888.com";      //代理后台正式服务器
// const api = "";

var API = {
    // 代理后台api接口
    login: api + "/api/agent/webjson/login",                                                            // 登录
    addRegister: api + "/api/agent/webjson/addRegister",                                                // 注册

    remainDay: api + "/api/agent/homeJson/queryRemainDay",                                              // 获取剩余天数和佣金截止时间
    queryExpectedCommission: api + "/api/agent/homeJson/queryExpectedCommission",                       // 获取预计佣金
    commissionDeatil: api + "/api/agent/homeJson/commissionDeatil",                                     // 获取佣金概况
    moeneyDeatil: api + "/api/agent/homeJson/moeneyDeatil",                                             // 获取资金概况
    moneyDeatil: api + "/api/agent/homeJson/moneyDeatil",                                               // 获取资金概况的更多
    moeneyUpDeatil: api + "/api/agent/homeJson/moeneyUpDeatil",                                         // 获取优惠概况
    promoDeatil: api + "/api/agent/homeJson/promoDeatil",                                               // 获取优惠概况的更多
    customerDeatil: api + "/api/agent/homeJson/customerDeatil",                                         // 获取会员概况
    customerRegDeatil: api + "/api/agent/homeJson/customerRegDeatil",                                   // 获取新注册概况
    gameDataSummary: api + "/api/agent/homeJson/gameDataSummary",                                       // 获取游戏数据汇总
    queryNewDeposit: api + "/api/agent/homeJson/queryNewDeposit",                                       // 获取最新存款的会员
    queryFirstDeposit: api + "/api/agent/homeJson/queryFirstDeposit",                                   // 获取首次存款的会员
    queryNewJoinCusomer: api + "/api/agent/homeJson/queryNewJoinCusomer",                               // 获取最新加入的会员
    memberDeatilMember: api + "/api/agent/homeJson/memberDeatilMember",                                 // 会员概况的更多-->获取累计会员
    memberDeatilActivity: api + "/api/agent/homeJson/memberDeatilActivity",                             // 会员概况的更多-->获取活跃会员
    memberDeatilValid: api + "/api/agent/homeJson/memberDeatilValid",                                   // 会员概况的更多-->获取有效会员
    regMemberDeatilMember: api + "/api/agent/homeJson/regMemberDeatilMember",                           // 新注册概况的更多-->获取累计会员
    regMemberDeatilActivity: api + "/api/agent/homeJson/regMemberDeatilActivity",                       // 新注册概况的更多-->获取活跃会员
    regMemberDeatilValid: api + "/api/agent/homeJson/regMemberDeatilValid",                             // 新注册概况的更多-->获取有效会员

    isLogin: api + "/api/agent/webjson/loginStatus",                                                    // 登录状态轮询
    logout: api + "/api/agent/webjson/logout",                                                          // 退出登录

    getMemberList: api + "/api/agent/member/memberList",                                                // 获取下级会员
    getFindMember: api + "/api/agent/member/findMember",                                                // 查询下级会员详情
    getAgentList: api + "/api/agent/member/agentList",                                                  // 获取下级代理
    getFindAgent: api + "/api/agent/member/findAgent",                                                  // 查询下级代理详情
    addAgent: api + "/api/agent/member/add",                                                            // 新增下级代理
    addMember: api + "/api/agent/homeJson/addMember",                                                   // 代会员注册
    getMemberByLoginName: api +'/api/agent/member/getMemberByLoginName',
    gamecount: api + "/agent/report/api/gamecount",                                                     // 游戏输赢用户统计

    statistic: api + "/api/agent/report/statistic",                                                     // 财务总报表
    gamesReports: api + "/api/agent/report/game",                                                       // 游戏输赢报
    transferReports: api + "/api/agent/report/transfer",                                                // 存提明细报表
    bonusReports: api + "/api/agent/report/bonus",                                                      // 红利返水报表
    commissionReports: api + "/api/agent/report/commission",                                            // 佣金报表
    firstReports: api + "/api/agent/report/first",                                                      // 会员首存报表
    teamCommission: api + "/api/agent/report/teamCommission",                                           // 团队佣金报表

    userInfo: api + "/api/agent/agentJson/center",                                                      // 个人资料
    subInfo: api + "/api/agent/agentJson/save",                                                         // 个人资料修改提交
    checkSms: api + "/api/agent/webjson/checksms",                                                      // 修改电话验证码检查
    newEmailCode: api + "/api/agent/webjson/sendEmail",                                                 // 新绑定邮箱验证码
    newEmailSub: api + "/api/agent/webjson/email/edit",                                                 // 新绑定邮箱提交
    changeEmailCode: api + "/api/agent/webjson/changeEmailValidCode",                                   // 修改邮箱-原邮箱获取验证
    changeEmailsub: api + "/api/agent/webjson/resetEmail",                                              // 修改邮箱-绑定新邮箱提交
    urlLinks: api + "/api/agent/spread/url",                                                            // 推广数据
    changePwd: api + "/api/agent/agentJson/password",                                                   // 修改密码
    getCode: api + "/api/agent/agentcashout2/sendValidCode",                                            // 修改资料获取验证码
    bankInfo: api + "/api/agent/agentJson/bank",                                                        // 个人银行卡信息
    sysBankList: api + "/api/agent/agentJson/sysbank/list",                                             // 系统银行卡列表
    editBank: api + "/api/agent/agentJson/editBank",                                                    // 提交银行卡修改
    getCurrency: api + "/api/agent/agentJson/sysvirtual/currency",                                      // 获取虚拟币币种列表
    virtualSendsms: api + "/api/agent/webjson/sendsms",                                                 // 虚拟币修改验证码发送
    virtualSendsmsCfm: api + "/api/agent/webjson/checksms",                                             // 虚拟币修改验证码确认
    subVirtual: api + "/api/agent/agentJson/virtual",                                                   // 虚拟币修改提交
    // toAddBank: api + "/api/agent/agentcashout/toAddBank",                                            // 银行卡提款信息列表
    withdrawInfo: api + "/api/agent/agentcashout2/toAddCashOut",                                        // 银行卡提款信息列表
    subBankWithdraw: api + "/api/agent/agentcashout2/addCashOut",                                       // 银行卡取款提交
    // bankCardWithdraw: api + "/api/agent/agentcashout/addBank",                                       // 银行卡提款提交
    withdrawVirtualInfo: api + "/api/agent/agentcashout2/toAddCashOutVirtual",                          // 虚拟币提款信息列表
    // toAddVirtual: api + "/api/agent/agentcashout/toAddVirtual",                                      // 虚拟币提款信息列表
    // virtualWithdraw: api + "/api/agent/agentcashout/addVirtual",                                        // 虚拟币提款提交
    subVirtualWithdraw: api + "/api/agent/agentcashout2/addCashOutVirtual",                             // 虚拟币提款提交
    subCommissionWithdraw: api + "/api/agent/agentcashout2/addcashoutrebate",                           // 佣金提款提交
    getCashToMemberInfo: api + "/api/agent/agentcashout2/cash2memberAdd",                               // 给会员转账数据获取
    memberSendsms: api + "/agent/webjson/withdrawValidCode",                                            // 给会员转账获取验证码
    cashToMemberSub: api + "/api/agent/agentcashout2/cash2memberAccount",                               // 给会员转账提交
    // cashOutHistory: api + "/api/agent/agentcashout/list",                                               // 银行卡取款记录
    cashOutHistory: api + "/api/agent/agentcashout2/cashOutList",                                       // 银行卡取款记录
    delWithdrawRecord: api + "/api/agent/agentcashout2/deleteCashOut",                                  // 删除银行卡取款记录
    // virtualOutHistory: api + "/api/agent/agentcashout/virtualList",                                     // 虚拟币取款记录
    virtualOutHistory: api + "/api/agent/agentcashout2/cashOutVirtualList",                             // 虚拟币取款记录
    delWithdrawRecordVirtual: api + "/api/agent/agentcashout2/deleteCashOutVirtual",                    // 删除虚拟币取款记录
    cashoutRebatelist: api + "/api/agent/agentcashout2/cashoutrebatelist",                              // 佣金取款记录
    changeMobileSendSms: api + "/agent/webjson/changeMobileSendSms",                                    // 修改手机号--发送
    changeMobileCheckSms: api + "/api/agent/agentJson/changeMobileCheckSms",                            // 修改手机号--验证
    changeMobile: api + "/api/agent/agentJson/changeMobile",

    updateNickName: api + "/api/agent/member/update",

    getAgentInfo: api + "/api/agent/agentcashout/agentinfo",                                            // 获取代理信息
    cashBonusInfo: api + "/api/agent/foundsmanagement/toAdd",                                           // 发放礼金--信息获取
    checkMember: api + "/api/agent/foundsmanagement/queryMember",                                       // 发放礼金--检查发放账户
    fundsValidCode: api + "/agent/webjson/fundsValidCode",                                              // 发放礼金--发送验证码
    addCashBonus: api + "/api/agent/agentJson/funds/add",                                               // 发放礼金--提交
    cashBonusList: api + "/api/agent/foundsmanagement/list",                                            // 礼金记录
    limitDepositSub: api + "/api/agent/agentcashin/cashin",                                             // 额度存款提交
    agentDepositList: api + "/api/agent/agentcashin/cashinlist",                                        // 代理存款记录
    checkDepositMember: api + "/api/agent/agentcashout/checkaccount",                                   // 代存账号验证
    subDepositToMember: api + "/api/agent/agentJson/cash2submember",                                    // 会员代存  提交
    subDepositToAgent: api + "/api/agent/agentJson/cash2subagent",                                      // 代理代存  提交
    lowLevelList: api + "/api/agent/agentcashout/cashoutlist",                                          // 代存记录
    validatePayPassword: api +"/api/agent/webjson/validatePayPassword",
    savePayPassword: api + '/api/agent/webjson/savePayPassword',
    restPayPassword:api + '/api/agent/agentJson/restPayPassword',
    notice: api + "/api/agent/homeJson/notice",
    // 公告列表

    // kfMeiqia : 'https://static.meiqia.com/dist/standalone.html?_=t&eid=128397',                      //美洽
    kfMeiqia: "https://temp-chat.mstatik.com/widget/standalone.html?_=t&eid=128397",                    //美洽
    kfLiveChat: "https://lc.chat/now/10949777/",                                                        //livechat

    version:'10.21',
};
module.exports = API;
